package Arraydemo;

import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {

        int[] c = new int[]{};  //这是静态初始化

        int[] d = new int[1];   //这是动态初始化
        //这是简略版初始化

        //静态初始化
        int[] a ;
        a =new int[]{};

        //动态初始化
        int[] a1;
        a1 = new int[10];
        Scanner sc = new Scanner(System.in);
        for(int i = 0; i < a1.length; i++)
        {
            a1[i] = sc.nextInt();
        }
        for(int i : a1)
        {
            System.out.println(i);
        }
    }
}
